﻿package mortal.game.view.wizard
{
    import Message.DB.Tables.*;
    import mortal.common.swfPlayer.*;
    import mortal.game.resource.tableConfig.*;
    import mortal.game.view.common.item.*;
    import mortal.game.view.skill.*;
    import mortal.game.view.wizard.data.*;

    public class WizardXpItem extends BaseItem
    {
        private var _wizardData:WizardData;
        private var _selectEffect:SWFPlayer;
        private var _skillInfo:SkillInfo;

        public function WizardXpItem()
        {
            return;
        }// end function

        public function set wizardData(param1:WizardData) : void
        {
            this._wizardData = param1;
            var _loc_2:* = SkillConfig.instance.getInfoById(this.wizardData.tSpriteEx.xpskillId);
            this._skillInfo = new SkillInfo();
            this._skillInfo.tSkill = _loc_2;
            this.source = this._skillInfo.tSkill.skillIcon + ".jpg";
            return;
        }// end function

        public function get wizardData() : WizardData
        {
            return this._wizardData;
        }// end function

        override public function get toolTipData()
        {
            return this._skillInfo;
        }// end function

    }
}
